#ifndef MAINDIALOG_H
#define MAINDIALOG_H

#include <QDialog>
#include "ui_mainDialog.h"
#include "resultdialog.h"

class mainDialog : public QDialog, public Ui::mainDialog
{
    Q_OBJECT
public:
    explicit mainDialog(QWidget *parent = 0);
    
    resultDialog *_resultDialog;

    int         numOfZeros;
    QStringList results;

    void addToResult(int val);

signals:
    
public slots:

    // Result Dialog
    void checked();

    // Main Dialog
    void on_getResultButton_clicked();
    void on_beforeLine_textChanged()
    {    getResultButton->setDisabled( beforeLine->text().isEmpty());}
    
};

#endif // MAINDIALOG_H
